package com.yan.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component // 变成一个组件方便调用
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {


    private String name;
    private int  age;


}
